<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>拉萨市财政局投资评审管理系统  </title>
    <link rel="stylesheet" href="css/style.css">
    <script src="js/jquery-1.10.2.min.js"></script>
    <meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
   
</head>
<body>
<!--main-header start-->
<div class="main-header">
    <div class="w-1200 clearfix">
        <div class="header-logo fl"><a href=""><img src="images/logo.png"></a> </div>
        <!--header-person start-->
        <div id="head_login"></div>
        <script type="text/javascript">
          $("#head_login").load("login_common.html");
        </script>
        <!--header-person end-->
        <!--header-nav start-->
        <div class="header-nav fr">
            <ul class="nav">
                <li class="on"><a href="/jgindex.html">项目列表</a> </li>
                <li><a href="/additem.html">新增立项</a> </li>
                <span id="art"></span>
               <script>$("#art").load("artcommon.html")</script>
            </ul>
        </div>
        <!--header-nav end-->
    </div>
</div>
<!--main-header end-->
<!--head-search start-->
<div id="mainbox">

<div id="sbox"></div>
<script>$("#sbox").load("search.html")</script>




<!--head-search end-->
<script src="js/jquery.selectlist.js"></script>
<script type="text/javascript">
    $(function(){
        $('select').selectlist({
            zIndex: 10,
            width: 300,
            height: 40
        });
    })
</script>
<!--project-list start-->
<div class="project-list w-1200">
    <!--project-list-head start-->
    <div class="project-list-head clearfix">
        <div class="project-list-li w-110 fl">立项文号</div>
        <div class="project-list-li w-200 fl">项目名称</div>
        <div class="project-list-li w-130 fl">所属业主</div>
        <div class="project-list-li w-130 fl">评审类别</div>
        <div class="project-list-li w-130 fl">行业分类</div>
        <div class="project-list-li w-130 fl">提交时间</div>
        <div class="project-list-li w-130 fl">状态</div>
        <div class="project-list-li w-160 fl">操作</div>
    </div>
    <!--project-list-head end-->
    <!--project-list-item start-->
    <div id="list">



    </div>
    <!--project-list-item end-->
    <!--main-pages start-->
    <div class="main-pages" id="listpg">
        
    </div>
    <!--main-pages end-->
</div>


</div>
<script type="text/javascript" src="js/auth.js"></script>
<script>

 function loadpage(p){

    var owner = getQueryString2("owner");
    var lxnumber = getQueryString2("lxnumber");

    var name = getQueryString2("name");

    var wtdw = getQueryString("wtdw");

    var industry = getQueryString2("industry");

    var addtime = getQueryString("addtime")+ " 00:00:00";
    var bzjg = getQueryString("bzjg");

    $.get(HTTP_HOST+"api/Index/list?page="+p+"&owner="+owner+"&lxnumber="+lxnumber+
        "&name="+name+"&wtdw="+wtdw+"&bzjg="+bzjg+"&addtime="+addtime+"&industry="+industry,function(res){
var itemlist = res.result.list;
var list = "";

    $.each(itemlist,function(k,v){
        var status=getstatus(v.status);
        v.addtime = timestampToTime(v.addTime);
        list+=`<div class="project-list-item clearfix">
            <div class="project-list-li w-110 fl">`+v.lxnumber+`</div>
            <div class="project-list-li w-200 fl">`+v.name+`</div>
            <div class="project-list-li w-130 fl">`+v.owner+`</div>
            <div class="project-list-li w-130 fl">`+v.type+`</div>
            <div class="project-list-li w-130 fl">`+v.industry+`</div>
            <div class="project-list-li w-130 fl">`+v.addtime+`</div>
            <div class="project-list-li w-130 fl">`+status+`</div>
            <div class="project-list-li w-160 fl">
                <a class="project-list-but scan" href=`+HTTP_HOST+'prepare.html?id='+v.id+`>查看</a>
                <a class="project-list-but del" href="">删除</a>
            </div>
        </div>
    `; 
    });
    $("#list").html(list);
    $("#listpg").html(res.result.pg);
});}
   
 loadpage(1);

    function artlist(obj){
        $(obj).parent("li").addClass("on");
        $("#mainbox").load("artlist.html");
    }

    function jumpage(p,size){
        loadpage(p);
    }


    function search(){
    var owner = $("#owner").val();
    var lxnumber = $("#lxnumber").val();
    var name = $("#name").val();
    var wtdw = $("#wtdw").val();
    var bzjg = $("#bzjg").val();
    var addtime = $("#addtime").val();
    var industry = $("#industry").val();
    var lxr = $("#wtdwlxr").val();
  
    window.location.href= "/jgindex.html?owner="+owner+"&lxnumber="+lxnumber+
    "&name="+name+"&wtdw="+wtdw+"&bzjg="+bzjg+"&industry="+industry+"&wtdwlxr="+lxr;
}



</script>



</body>
</html>
